﻿namespace Common.Base
{
    public abstract class BaseController
    {
        protected BaseView currentView;

        public event ViewChangedEventHandler ViewChanging;

        public void ChangeView(BaseView view)
        {
            this.currentView = view;
            if (this.ViewChanging != null)
            {
                this.ViewChanging(this.currentView);
            }
        }

        public abstract void Initialize();
    }
}
